Array.classPrototype.length
- Instance of
- Return value
-
/*Number*/
Description
Returns the number of elements in that array.
Example
let arr = [36.6, "Harry", true];
console.write(arr.length());
Expected output
3
/*Number*/
Returns the number of elements in that array.
let arr = [36.6, "Harry", true];
console.write(arr.length());
Expected output
3